package service;

import mapper.ArticleMapper;
import mapper.LoginMessageMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "deleteServiceImpl")
public class DeleteServiceImpl implements DeleteService{

    //日志文件类
    private static final Logger logger = LoggerFactory.getLogger(DeleteServiceImpl.class);

    //自动注入数据库接口文件的代理类
    @Autowired
    private LoginMessageMapper loginMessageMapper;
    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public boolean deleteArticle(int id){
        try {
            articleMapper.deleteArticle(id);
            return false;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
